package com.cropdoctor.service.impl;

import com.cropdoctor.mapper.SysPermissionMapper;
import com.cropdoctor.model.po.SysPermissionPo;
import com.cropdoctor.mybatisplus.BaseServiceImpl;
import com.cropdoctor.service.SysPermissionService;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description: 【 权限表 Service接口实现类 】
 */
@Service
public class SysPermissionServiceImpl extends BaseServiceImpl<SysPermissionMapper, SysPermissionPo> implements SysPermissionService {


    @Override
    public List<SysPermissionPo> selectListByUser(Integer userId) {
        return baseMapper.selectListByUser(userId);
    }

    @Override
    public List<SysPermissionPo> selectListByPath(String path) {
        return baseMapper.selectListByPath(path);
    }
}
